@set slnroot=%~dp0

xcopy /e /r /i /y /d "%slnroot%..\ThirdParty\inc" "%slnroot%inc"
if exist "%slnroot%..\ThirdParty\lib\debug" xcopy /y /d "%slnroot%..\ThirdParty\lib\debug\*.lib" "%slnroot%lib\debug\*.lib"
if exist "%slnroot%..\ThirdParty\bin\debug" xcopy /y /d "%slnroot%..\ThirdParty\bin\debug\*.dll" "%slnroot%bin\debug\*.dll"
if exist "%slnroot%..\ThirdParty\lib\release" xcopy /y /d "%slnroot%..\ThirdParty\lib\release\*.lib" "%slnroot%lib\release\*.lib"
if exist "%slnroot%..\ThirdParty\bin\release" xcopy /y /d "%slnroot%..\ThirdParty\bin\release\*.dll" "%slnroot%bin\release\*.dll"
REM //for WebKit
if exist "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\Include" xcopy /e /r /i /y /d "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\Include" "%slnroot%inc\WebKit"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\include" xcopy /e /r /i /y /d "%slnroot%..\WebKit\WebKitLibraries\win\include" "%slnroot%inc\WebKitLibraries"
if exist "%slnroot%..\WebKit\Source\JavaScriptCore\os-win32" xcopy /e /r /i /y /d "%slnroot%..\WebKit\Source\JavaScriptCore\os-win32" "%slnroot%inc\WebKit\JavaScriptCore\os-win32"

REM //WebKit debug
if exist "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\lib" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\lib\*.lib" "%slnroot%lib\debug\*.lib"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\lib" xcopy /y /d "%slnroot%..\WebKit\WebKitLibraries\win\lib\*.lib" "%slnroot%lib\debug\*.lib"
if exist "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin\*.dll" "%slnroot%bin\debug\*.dll"
if exist "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin\*.exe" "%slnroot%bin\debug\*.exe"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\bin\debug" xcopy /y /d "%slnroot%..\WebKit\WebKitLibraries\win\bin\debug\*.dll" "%slnroot%bin\debug\*.dll"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\bin\release" xcopy /y /d "%slnroot%..\WebKit\WebKitLibraries\win\bin\release\*.dll" "%slnroot%bin\release\*.dll"
if exist "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin\WebKit.resources\en.lproj" xcopy /e /r /i /y /d "%slnroot%..\WebKit\WebKitBuild\Debug_Cairo_CFLite\bin\WebKit.resources\en.lproj" "%slnroot%bin\debug\WebKit.resources\en.lproj"

REM //WebKit release
if exist "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\lib" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\lib\*.lib" "%slnroot%lib\release\*.lib"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\lib" xcopy /y /d "%slnroot%..\WebKit\WebKitLibraries\win\lib\*.lib" "%slnroot%lib\release\*.lib"
if exist "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin\*.dll" "%slnroot%bin\release\*.dll"
if exist "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin" xcopy /y /d "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin\*.exe" "%slnroot%bin\release\*.exe"
if exist "%slnroot%..\WebKit\WebKitLibraries\win\bin\release" xcopy /y /d "%slnroot%..\WebKit\WebKitLibraries\win\bin\release\*.dll" "%slnroot%bin\release\*.dll"
if exist "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin\WebKit.resources\en.lproj" xcopy /e /r /i /y /d "%slnroot%..\WebKit\WebKitBuild\Release_Cairo_CFLite\bin\WebKit.resources\en.lproj" "%slnroot%bin\release\WebKit.resources\en.lproj"